<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			if (!uni.getStorageSync("token")) {
				uni.reLaunch({
					url: "../login/index"
				})
			}
		},
		onLoad() {
			if (!uni.getStorageSync("token")) {
				uni.reLaunch({
					url: "../login/index"
				})
				return
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";

	/*每个页面公共css */
	page {
		height: 100%;
		background-color: #F6F6F6;
	}
</style>